
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Meeting Room</title>
</head>
<body style="background-repeat: no-repeat;height:800px; width:1000px; position:fixed; top:0; left:0; " background="bm_6.png">
<?php
require_once 'bbb_api.php';
error_reporting(0);
$file = "testfile.txt";
$fh = fopen($file , 'r') or die("Can't open file");
$i;
$indexFile=0;

  $i= fgets($fh);
  //echo "<BR>";
  $indexFile+=$indexFile;
  //<body style="background-repeat: no-repeat;height:1500px; width:1500px;" background="bm_4.png">

$i= $i + 1;
fclose($file);

$myFile = "testfile.txt";
$fhw = fopen($myFile, 'w') or die("can't open file");

fwrite($fhw, $i);
fclose($myFile);







//if ($_REQUEST['action'] == 'create' && trim($_REQUEST['username']))
//{
   /*
        * Got an action=create
        *
        * Request a URL to join a meeting called "Demo Meeting"
        * Pass null for welcome message to use the default message (see defaultWelcomeMessage in bigbluebutton.properties)
        *
        */
	//Demo Meeting
	// meeting ID =9988
	$name='participant-'.$i;
	$meetingToken='8e926033-eeb3-4b83-988a-ada34391ed24';
	$joinURL = getJoinURLViewer($name, $meetingToken, $welcome = '');

	
	if (substr($joinURL, 0, 7)== 'http://')
    {	
		echo "<font size=\"100\" face=\"Verdana\" color=\"BLUE\">
<BR><CENTER>WELCOME.</CENTER></BR>
</font>" ;
		echo "<a href=\"$joinURL\"><CENTER font size=\"100\" face=\"Verdana\" color=\"BLACK\">PLEASE CLICK TO JOIN VIRTUAL MEETING.</CENTER></a>" ;
    }
    else
    {
		echo "Error:".$joinURL;
    }
//}
//else
//{
?>




</body>
</html>


 
 
 
 
